import { isEmpty } from './common'

/**
 * 值为空时返回 '无'
 * @param data
 * @returns {string|*}
 */
export const handleFormEmptyData = data => {
  if (isEmpty(data)) {
    return '-'
  }
  return data
}
